package ebj.common.base.my;


public class Heart {
	public static void main(String[] args) {
		String star_shape = "*";
		String return_code = "\n";
		String white_shap = " ";
		int max_wideth = 29;
		int centerNum = 3;
		int lineNum = 14;
		for (int i = 0; i < lineNum; i++) {
			if (i < centerNum) {
				StringBuilder tmpBuilder = new StringBuilder();
				StringBuilder starBuilder = new StringBuilder();
				StringBuilder whiteBuilder = new StringBuilder();
				int whiteNum4i = (6-(2*i+1)); 
				for (int j = 0; j < whiteNum4i; j++) {
					whiteBuilder.append(white_shap);
				}
				for (int j = 0; j < ((max_wideth - centerNum * whiteNum4i)/2); j++) {
					starBuilder.append(star_shape);
				}
				tmpBuilder.append(whiteBuilder.toString())
				.append(starBuilder.toString())
				.append(whiteBuilder.toString())
				.append(starBuilder.toString())
				.append(whiteBuilder.toString())
				.append(return_code);
				System.out.print(tmpBuilder.toString());
			}else if (i >= centerNum && i < 2*centerNum) {
				StringBuilder tmpBuilder = new StringBuilder();
				for (int j = 0; j < max_wideth; j++) {
					tmpBuilder.append(star_shape);
				}
				System.out.println(tmpBuilder.toString());
			}else {
				StringBuilder tmpBuilder = new StringBuilder();
				StringBuilder pre_suf_fix = new StringBuilder();
				if (i >= 6 && i < 13) {
					for (int j = 0; j < max_wideth - (2 + 4*(i-6)); j++) {
						tmpBuilder.append(star_shape);
					}
				}else if (i == 13) {
					for (int j = 0; j < max_wideth - 4*(i-6); j++) {
						tmpBuilder.append(star_shape);
					}
				}
				if (i == 6) {
					pre_suf_fix.append(white_shap);
				}else if (i == 13) {
					for (int j = 0; j < 2*(i-6); j++) {
						pre_suf_fix.append(white_shap);
					}
				}else {
					for (int j = 0; j < 2*(i-5) - 1; j++) {
						pre_suf_fix.append(white_shap);
						
					}
				}
				System.out.println(pre_suf_fix.toString() + tmpBuilder.toString() + pre_suf_fix.toString());
			}
		}
	}
}
